﻿using Harmontronics.Model.Common;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Harmontronics.Model.Entitys
{
    /// <summary>
    /// 菜单角色关系
    /// </summary>
    [Table("menu_role")]
    public class MenuRoleRelation
    {
        /// <summary>
        /// id
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Column("id")]
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 菜单主键
        /// </summary>
        [Column("menuId")]
        public int MenuId { get; set; }
        /// <summary>
        /// 角色主键
        /// </summary>
        [Column("roleId")]
        public int RoleId { get; set; }
    }
}
